package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.internetofthings.firefightingiot;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: YangYu
 * @ClassName: UltrasonicService
 * @Date: Created in 17:13 2022/10/10
 * @Description: 远程抄表
 */
@Service
@Slf4j
public class UltrasonicService extends BaseService {

    /**
     * @Author YangYu
     * @Description 组新增、编辑
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity groupAddOrUpdate(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"groupAddOrUpdate","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 组删除
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity groupDel(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"groupDel","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 组列表
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity groupList(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"groupList","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 超声波设备新增、编辑
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity ultrasonicDeviceAddOrUpdate(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"ultrasonicDeviceAddOrUpdate","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 超声波设备删除
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity ultrasonicDeviceDel(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"ultrasonicDeviceDel","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 超声波设备详情
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity ultrasonicDeviceDetail(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"ultrasonicDeviceDetail","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 超声波设备分页列表
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity ultrasonicDeviceListPage(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"ultrasonicDeviceListPage","ultrasonic");
    }

    /**
     * @Author YangYu
     * @Description 超声波水表数据分页列表
     * @Date Created in 17:14 2022/10/10
     * @Param [jsonParam]
     */

    public RespEntity ultrasonicDeviceNormalLogListPage(JSONObject jsonParam) {
        jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return fireFightingiotJava(jsonParam,"ultrasonicDeviceNormalLogListPage","ultrasonic");
    }
}
